package online.hxstar.learn.p_http.model;

/**
 * @author huxing
 * @date 2018-12-19 9:41
 */
public final class NettyMessage {
    private Header header;
    private Object body;

    public Header getHeader() {
        return header;
    }

    public Object getBody() {
        return body;
    }

    public NettyMessage setBody(Object body) {
        this.body = body;
        return this;
    }

    public NettyMessage setHeader(Header header) {
        this.header = header;
        return this;
    }

    @Override
    public String toString() {
        return "{" +
                "\"header\":" + header +
                ",\"body\":" + body +
                '}';
    }
}
